<template>
  <!--轮播表-->
  <componentBox :id="id" :ref="id" :option="config.location">
    <dv-scroll-board :key="key" :config="option" style="width: 100%;height: 100%"/>
  </componentBox>
</template>

<script>
  import mixins from "../boxMixins";
  export default {
    name: "screen_table",
    mixins: [mixins],
    data(){
      return{
        option:{},
        key:1,
      }
    },
    watch:{
      "config.data":{
        handler(newVal){
          this.config.option.data=u.copyBean(newVal);
        },
        deep:true,
      },
      config:{
        handler(newVal){
          this.option=u.copyBean(newVal.option);
          this.key++;
          this.$forceUpdate()
        },
        deep:true,
      }
    },
    mounted() {
      this.option=this.config.option;
    },
  }
</script>

<style scoped>


</style>
